import request from '@/utils/request';

export async function getPickingDetailsByPage (params: any) {
    return request('/api/product/getPickingDetailsByPage', {
    method: 'POST',
    data: params,
  });
}



export async function addPickingDetails (params: any) {
    return request('/api/product/addPickingDetails', {
    method: 'POST',
    data: params,
  });
}

export async function updatePickingDetails (params: any) {
    return request('/api/product/updatePickingDetails', {
    method: 'POST',
    data: params,
  });
}

export async function delPickingDetails (params: any) {
    return request('/api/product/delPickingDetails', {
    method: 'POST',
    data: params,
  });
}


export async function exportPickingDetails(params: any) {
    return request('/api/product/exportPickingDetails', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default { getPickingDetailsByPage, addPickingDetails, updatePickingDetails, delPickingDetails, exportPickingDetails }
